package com.ym.medical.domain.param;

import com.ym.common.constant.BeanCovert;
import static com.ym.common.constant.ValidRule.Add;
import static com.ym.common.constant.ValidRule.Update;
import com.ym.medical.domain.entity.StudioPersonServiceEntity;
import com.ym.common.annotations.CustomConstraint;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.util.Date;

/**
 * 工作室成员分成对象 studio_person_service
 *
 * @author ym
 * @date 2020-09-14
 */
@ApiModel("工作室成员分成-修改")
@Builder
@Data
@AllArgsConstructor
@NoArgsConstructor
public class StudioPersonServiceUpdateParam extends BeanCovert<StudioPersonServiceEntity>{

    @ApiModelProperty("主键")
    @NotNull(message = "主键不能为空", groups = {Add.class, Update.class})
    private Long id;

    @ApiModelProperty("工作室人员主键")
    private Long studioPersonId;

    @ApiModelProperty("服务项标识(01:图文;02:电话;03:私人)")
    @Size(max = 2, message = "服务项标识长度超过{max}", groups = {Add.class, Update.class})
    private String serviceId;

    @ApiModelProperty("分成比例")
    private Double proportion;

    @ApiModelProperty("null")
    private Double price;

    @ApiModelProperty("状态(01:开启;00:关闭)")
    @Size(max = 2, message = "状态长度超过{max}", groups = {Add.class, Update.class})
    private String state;

    @ApiModelProperty("创建时间")
    @NotNull(message = "创建时间不能为空", groups = Add.class)
    private Date createTime;

}
